package org.example;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello Java: TangZhongJie");
        Main main = new Main();
        main.DoWork(2,3,0);
    }
    public void DoWork(int x,int y,int z){
        for (int i = 0; i < 4; i++) {
            int k=0;
            int j=0;
            if (i==1){
                if (x>1||z<10){
                    k=x+z;
                    j=k*k;
                }
                if (y==4||z>1){
                    j=z*y+10;
                }
            }else if (i==2){
                if (x>1&&z<10){
                    k=x+z;
                    j=k*k;
                }
                if (y==4&&z>1){
                    j=z*y+10;
                }
            }else if (i==3){
                if (x>1&&z<10){
                    k=x+z;
                    j=k*k;
                }
                if (y!=4||z>1){
                    j=z*y+10;
                }
            }else {
                if (x>1&&z<10){
                    k=x+z;
                    j=k*k;
                }
                if (y==4||z>1){
                    j=z*y+10;
                }
            }
            j=j%3;
            System.out.println("错误类型："+i+"\tk="+k+"\tj="+j);
        }


    }
}